package com.crm.service;

import org.springframework.data.domain.Page;

import com.crm.entity.Users;

public interface UsersService {

	
	/**
	 * 
	* @Title: getUsersByPage
	* @author  
	* @Description: 按条件查询用户带分页
	* @param pageIndex
	* @param name
	* @return
	* @return Page<Users>
	 */
	Page<Users> getUsersByPage(Integer pageIndex, String name);

	/**
	 * 
	* @Title: addUsers
	* @author  
	* @Description: 添加用户
	* @param users
	* @return void
	 */
	void addUsers(Users users);

	/**
	 * 
	* @Title: deleteUsers
	* @author  
	* @Description: 删除用户
	* @param id
	* @return void
	 */
	void deleteUsers(String id);

	/**
	 * 
	* @Title: login
	* @author  
	* @Description: 登录
	* @param username
	* @param password
	* @return void
	 */
	Users login(String username, String password);

}
